package com.ruizhong.centercontroll.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_page")
@XmlRootElement
public class TPage {
    @TableId(value = "id", type = IdType.AUTO)
    @XmlTransient
    private Integer id;

    @XmlTransient
    private String pageName;
    private String pageBackgroundImage;
    private Double pageWidth;
    private Double pageHeight;
    private String pageBackgroundColor;
    private Integer highestZIndex;
    private String buttonGroupNameData;
    @XmlTransient
    private String pageImg;
    @XmlTransient
    @TableField(exist = false)
    private List<String> buttonGroupName;

    @XmlTransient
    @TableField(exist = false)
    private List<TAudio> audioList;

    @XmlTransient
    public String getPageImg() {
        return pageImg;
    }

    @XmlTransient
    public List<TAudio> getAudioList() {
        return audioList;
    }

    @XmlTransient
    public List<String> getButtonGroupName() {
        return buttonGroupName;
    }

    @XmlTransient
    public String getPageName() {
        return pageName;
    }

    @XmlTransient
    public Integer getId() {
        return id;
    }


}
